package com.squid.base.common.mapper;

import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Collection;

/**
 * mybaits通用IService
 *
 * @author jh
 * @date 2022/11/30 10:58
 */
public interface EasyService<T> extends IService<T> {

    /**
     * 批量插入
     * 解决数量过大导致sql过长
     *
     * @param entityList
     * @param batchSize
     * @return
     */
    boolean insertBatchSomeColumnAndBatchSize(Collection<T> entityList, int batchSize);

}
